package com.uduemc.biso.node.web.api.service.fegin;

import java.io.IOException;

import com.uduemc.biso.node.core.entities.SContainerForm;

public interface SContainerFormService {

	/**
	 * 写入 SContainerForm 数据
	 *
	 * @param sContainerForm
	 * @return
	 * @throws IOException
	 */
	SContainerForm insert(SContainerForm sContainerForm) throws IOException;

	/**
	 * 通过 formId 获取容器当中的可用的表单主容器 ContainerFormmainbox 数据
	 * 
	 * @return
	 * @throws IOException
	 */
	SContainerForm findContainerFormmainbox(long hostId, long formId) throws IOException;

	SContainerForm findContainerFormmainbox(long id, long hostId, long formId) throws IOException;

	/**
	 * 更新数据
	 * 
	 * @param sContainerForm
	 * @return
	 * @throws IOException
	 */
	SContainerForm update(SContainerForm sContainerForm) throws IOException;
}
